Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /


Chapter 2 - Shape Objects

This chapter describes shape objects and the functions you can use to manipulate them. Read this chapter if you create or use any kind of QuickDraw GX shapes.

Before reading this chapter, you should be familiar with the information in the chapter "Introduction to QuickDraw GX" in this book. For more information on graphic shapes, see Inside Macintosh: QuickDraw GX Graphics. For more information on typographic shapes see Inside Macintosh: QuickDraw GX Typography. Additional information relevant to the storage of shape objects is in the stream format chapter of Inside Macintosh: QuickDraw GX Environment and Utilities.

This chapter introduces the concept of a QuickDraw GX shape, and describes shape objects and their properties. It then shows how to use general QuickDraw GX shape-manipulation functions to

This chapter also lists and cross-references all shape-related QuickDraw GX functions that are described elsewhere in this book and in other parts of Inside Macintosh.


Chapter Contents
About QuickDraw GX Shapes
About Shape Objects
Shape Properties
Shape Type
Shape Geometry
Shape Fill
Shape Attributes
Default Shapes
Modifying Shape Properties
Drawing Shapes
Hit-Testing Shapes
Saving and Restoring Shapes
Using Shape Objects
Creating and Manipulating Shape Objects
Getting and Setting the Default Shape Objects
Creating and Disposing of Shape Objects
Getting the Size of a Shape Object in Memory
Copying, Comparing, and Cloning Shape Objects
Caching Shape Objects
Loading and Unloading Shape Objects
Manipulating Shape Object Properties
Getting and Setting a Shape Object's Type, Fill, and Attributes
Copying the Geometry From One Shape to Another
Getting and Setting a Shape Object's Style, Ink, and Transform
Resetting a Shape Object's Properties to Their Default Values
Manipulating a Shape Object's Owner Count
Getting and Setting a Shape Object's Tag References
Converting Shapes From One Type to Another
Directly Manipulating a Shape's Geometry
Drawing and Hit-Testing Shapes
Drawing Shapes
Hit-Testing Shapes
Shape Parts
Hit-Test Info Structure
Hit-Testing Example
Flattening and Unflattening Shapes
Shape-Related Functions Described Elsewhere
Shape Objects Reference
Constants and Data Types
The Shape Object
Shape Type
Shape Fill
Shape Attributes
Flatten Flags
The Spool Block
The Hit-Test Info Structure
Functions
Creating and Manipulating Shape Objects
Manipulating Shape Object Properties
Directly Manipulating a Shape's Geometry
Drawing and Hit-Testing Shapes
Flattening and Unflattening Shape Objects
Application-Defined Spool Function
Summary of Shape Objects
Constants and Data Types
The Shape Object
Shape Type
Shape Fill
Shape Attributes
Flatten Flags
The Spool Block Structure
The Hit-Test Info Structure
Spool Commands
Functions
Creating and Manipulating Shape Objects
Manipulating Shape Object Properties
Directly Manipulating Shape Geometry
Drawing and Hit-Testing Shapes
Flattening and Unflattening Shapes
Application-Defined Spool Function

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996